SETLOCAL
SET pluginDir=%ProgramData%\EWSoftware\Sandcastle Help File Builder\Components and Plug-Ins\SandScript\
DEL /q "%pluginDir%"
XCOPY /y /s "%1*.*" "%pluginDir%"
REN "%pluginDir%%2.dll" "%2.plugins"
ENDLOCAL